from django.db.models.query import QuerySet
from books.models import *


def run():
    queryset = QuerySet(model=Books).filter(id__gt=3)
    # print(queryset.query)
    # print(queryset._defer_next_filter)
    # print(Books._meta._property_names)
    # print(1 if getattr(Books, 'pk').fset else 2)
    # res = queryset._extract_model_params({}, pk=2)
    # print(res)
    # Books.objects.all().extra()
    # print(Books.objects.all().extra(where=['id > 3']))
    print(queryset)
    # print(queryset)
    # print(queryset._result_cache)
